<div class="details-view">
  <div class="navbar record-toolbar">
    <div class="navbar-inner">
      <div class="container" ui-toolbar-adjust>
        <div class="btn-group">
          <button class="btn" ng-click="onNew()" ng-if="canNew()" title="{{ 'New' | t}}">
            <i class="fa fa-plus"></i>
          </button>
          <button class="btn" ng-click="onSave()" ng-if="isEditable() && hasButton('save') && (canEdit() || canSave())"  title="{{ 'Save' | t}}">
            <i class="fa fa-floppy-o"></i>
          </button>
          <button class="btn" ng-click="onCancel()" ng-disabled="!canCancel()" title="{{ 'Cancel' | t}}">
            <i class="fa fa-refresh"></i>
          </button>
          <button class="btn" ng-disabled="!canShowAttachments()" ng-click="onShowAttachments()" ng-class="{'has-attachments': record.$attachments}">
            <i class="fa fa-paperclip"></i><sub ng-if="record.$attachments"> {{record.$attachments}}</sub>
          </button>
        </div>
        <div class="btn-group view-toolbar" ng-show="toolbar" style="display: none;">
          <button ng-repeat="btn in toolbar | filter:{custom: true}" ui-tool-button></button>
        </div>
        <div class="btn-group" ng-show="toolbar" style="display: none;">
          <button ng-repeat="btn in toolbar | filter:{custom: false}" ui-tool-button></button>
        </div>
        <div ui-menu-bar x-menus="menubar" x-handler="this" class="view-menubar" style="visibility: hidden;"></div>
      </div>
    </div>
  </div>
  <div ui-view-form x-handler="this"></div>
</div>
